/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pfc.modelocg;

import pfc.modeloer.ERAttrib;

/**
 *
 * @author xandru
 */
public class CGField {
    private String _attribName;

    Boolean _visible=true;
    Boolean _present=true;
    Boolean _searchable=true;
    Boolean _editable=true;
    Boolean _crearSelect=false;

    private CGField(){};
    static CGField createField() {
        return new CGField();
    }

    String _name;
    ERAttrib _attrib;

    public CGField(ERAttrib a) {
        _name = a.getName();
        _attrib = a;
    }

    public String getName() {
        return _name;
    }

    public ERAttrib getAttrib() {
        return _attrib;
    }

    public void setAttrib(ERAttrib _attrib) {
        this._attrib = _attrib;
    }

    public void setName(String _name) {
        this._name = _name;
    }

    void setAttribName(String attributeValue) {
        this._attribName = attributeValue;
    }

    public String getAttribName() {
        return _attribName;
    }

    public Boolean isSearcheable() {
        return _searchable;
    }

    public void setSearcheable(Boolean busqueda) {
        this._searchable = busqueda;
    }

    public Boolean isPresent() {
        return _present;
    }

    public void setPresent(Boolean presente) {
        this._present = presente;
    }

    public Boolean isVisible() {
        return _visible;
    }

    public void setVisible(Boolean visible) {
        this._visible = visible;
    }

    public Boolean isEditable() {
        return _editable;
    }

    public void setEditable(Boolean _editable) {
        this._editable = _editable;
    }

    public Boolean isSearchable() {
        return _searchable;
    }

    public void setSearchable(Boolean _searchable) {
        this._searchable = _searchable;
    }

    public Boolean createSelect() {
        return _crearSelect;
    }

    public void setCreateSelect(Boolean crearSelect) {
        _crearSelect = crearSelect;
    }
}
